package com.gcu.admin.pojo.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;

import java.util.Date;

/**
 * @ system:Mac
 * @ author:lin tingfeng
 * @ data:2023/9/27 16:11
 * @ package_name:com.gcu.admin.pojo.entity
 * @ project_name:SpringCloud-Oauth2
 * @ desc: 基础实体类
 */
@Data
public class BaseEntity {

    @TableField(value = "create_time",fill = FieldFill.INSERT)
    private Date createTime;

    @TableField(value = "update_time",fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    @TableField(value = "create_by",fill = FieldFill.INSERT)
    private Long createBy;

    @TableField(value = "update_by",fill = FieldFill.INSERT_UPDATE)
    private Long updateBy;
}
